package com.sdy.hospitalguard.biz.constants;

public class Constants {
    /**
     * 文件存放文件夹
     */
    public static final String UPLOAD_FILE_PATH = "/opt/file/hospital_guard";

    public static final String SESSION_WX = "wxSession";

    /**
     * WEB端用户SESSION
     */
    public static final String SESSION_WEB_USER_ID = com.sdy.common.constant.Constants.SESSION_USER_ID;

    /**
     * 二维码长宽
     */
    public static final Integer QRCODE_SIZE = 500;
    /**
     * 二维码图片格式
     */
    public static final String QRCODE_FORMAT = "png";
    /**
     * 二维码存放文件夹
     */
    public static final String QRCODE_PATH = UPLOAD_FILE_PATH + "/qrcode";
    /**
     * 通行码存放文件夹
     */
    public static final String UPLOAD_FILE_PATH_PASSQR = "/opt/file/hospital-guard-web";
    /**
     * 卡口二维码存放文件夹
     */
    public static final String QRCODE_PATH_PASSQR = UPLOAD_FILE_PATH_PASSQR + "/qrcode";

    /**
     * 短信验证码错误过多锁定时间（分）
     */
    public static final Integer LOGIN_FAILED_LOCK_MINUTE = 10;
    public static final String YES_CN = "是";
    public static final String NO_CN = "否";
    public static final Integer CODE_MAX_APPLY_TIMES = 2;

    /**
     * 达到多少次验证码错误后锁定
     */
    public static final Integer LOGIN_FAILED_MAX_TIMES = 5;

    /**
     * 正则表达式：验证手机号
     */
    public static final String REGEX_PHONE = "^1[0-9]{10}$";
}
